package com.flow.modules.dingtalk.service;

import com.dingtalk.api.response.OapiAttendanceListRecordResponse;

import java.util.List;

/**
 * @author liuledong [1125615798@qq.com]
 * @version V1.0
 * @description: TODO
 * @date 2023/5/6 16:58
 */
public interface DingTalkAttendanceService {

    /**
     *
     * 一个部门中50人一组
     *
     * @param deptId
     * @return List<List<String>>
     */
    List<List<String>> getUserIdsGroup(String deptId);

    /**
     *
     * 按部门查 部门中50人一组
     *
     * @param accessToken
     * @param userIds
     * @param checkDateFrom
     * @param checkDateTo
     * @return List<OapiAttendanceListRecordResponse>
     */
    List<OapiAttendanceListRecordResponse> getAttendanceInfoByDeptsList(String accessToken, List<List<String>> userIds,
                                                                    String checkDateFrom, String checkDateTo);

    /**
     *
     * 666
     * @param accessToken
     * @param deptList
     * @param checkDateFrom
     * @param checkDateTo
     * @return List<List<OapiAttendanceListRecordResponse>>
     */
    List<List<OapiAttendanceListRecordResponse>> getAttendanceInfoByDepts(String accessToken,List<String> deptList,
                                                                                   String checkDateFrom, String checkDateTo);
}
